package com.cxria.pattern.observer.func2

class ChinaDnsServer extends DnsServer {

    @Override
    protected void sign(Recorder recorder) {
        recorder.owner = '中国顶级DNS服务器'
    }

    @Override
    protected boolean isLocal(Recorder recorder) {
        recorder.domain.endsWith('.cn')
    }

}
